﻿namespace SandScript.Models
{
    using System.Collections.Generic;
    using Documentation;

    public class ParentDetail
    {
        public ParentDetail(string qualifiedName)
        {
            this.QualifiedName = qualifiedName;
        }

        public ParentDetail(string qualifiedName, bool staticChildren)
            : this(qualifiedName)
        {
            this.StaticChildren = staticChildren;
        }

        public ParentDetail(string qualifiedName, bool staticChildren, IList<Field> fields)
            : this(qualifiedName, staticChildren)
        {
            this.Fields = fields;
        }

        public string QualifiedName { get; set; }

        public bool StaticChildren { get; set; }

        public IList<Field> Fields { get; set; }
    }
}
